﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace ProjetS5
{
    public static class ErrorLog
    {
        public static void Export(String logName, byte[] text)
        {
            FileStream file = File.Open(logName, FileMode.Append, FileAccess.Write);
            file.Write(text, 0, text.Length);
            file.Close();
        }
        public static void Delete(String logName)
        {
            File.Delete(logName);
        }
    }
}
